export default {
    path: '/',

    component: require('../app').default,

    indexRoute: {
        component: require('VIEW/Home').default
    },

    childRoutes: [

        // 路由按模块组织分离，避免单文件代码量过大

        //require('./LimitedBuy').default,

        require('./My').default,
        require('./Home').default,
        require('./RentHouse').default,
        require('./RentQuery').default,
        require('./ViewOrder').default,
        require('./Apartment').default,
        require('./LifeService').default,
        require('./Mine').default,
        require('./Result').default,
        require('./Help').default,
        require('./UserInfo').default,
        require('./LoansResult').default,
        require('./LoansApply').default,
        require('./Schedules').default,
        require('./houseLoanAdd').default,
        require('./houseLoan').default,
        require('./HmdMain').default,
        require('./MineLoan').default,
        require('./AgreementPage').default,
        require('./publicFundsRent').default,
        // ========================================================
        require('./Deposit').default,
        require('./Reservation').default,
        // 强制“刷新”页面的 hack
        { path: 'redirect', component: require('../app/Redirect').default },

        // 无路由匹配的情况一定要放到最后，否则会拦截所有路由
        { path: '*', component: require('../app/404').default }
    ]
}

/*
  当前路由树如下
  ├ /                       主页面
  ├ /LimitedBuy             抢购页面
  ├ /redirect
*/